<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname"
                class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text"
                value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mobile" data-rule="required" class="form-control" name="row[mobile]" type="text"
                value="{$row.mobile|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cat')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-cat" data-rule="required" class="form-control selectpicker" name="row[cat]">
                {foreach name="catList" item="vo"}
                <option value="{$vo}" {in name="key" value="$row.cat_text" }selected{/in}>{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>{if($row.cat=='业主'  || $row.cat=='租户')}
    <div class='yezhu' >
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Receive_type_id')}:</label>
            <div class="col-xs-12 col-sm-8">
                <select id="c-receive_type_id" data-rule="required" class="form-control selectpicker"
                    name="row[receive_type_id]">
                    {foreach name="receive_type" item="vo"}
                    <option value="{$vo.id}" {in name="vo" value="$row.receive_type_id" }selected{/in}>{$vo.type_name}
                    </option>
                    {/foreach}
                </select>
            </div>
        </div>
        <!--    <div class="form-group">-->
        <!--        <label class="control-label col-xs-12 col-sm-2">{:__('Receive_type_id')}:</label>-->
        <!--        <div class="col-xs-12 col-sm-8">-->
        <!--            <input id="c-receive_type_id" data-rule="required" data-source="receive_type/list" class="form-control selectpage" name="row[receive_type_id]" type="text" value="{$row.receive_type_id|htmlentities}">-->
        <!--        </div>-->
        <!--    </div>-->
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Building_no')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-building_no" data-rule="required"  class="form-control" name="row[building_no]" type="text"
                    value="{$row.building_no|htmlentities}">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Floor_no')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-floor_no" data-rule="required" class="form-control" name="row[floor_no]" type="text"
                    value="{$row.floor_no|htmlentities}">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Room_no')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-room_no" data-rule="required" class="form-control" name="row[room_no]" type="text"
                    value="{$row.room_no|htmlentities}">
            </div>
        </div>
    </div>
    {/if}
    {if ($row.cat=="访客" )}
    <div class="fangke form-group"  >
        <label class="control-label col-xs-12 col-sm-2">{:__('访客事由')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-remarks" data-rule="required" class="form-control" name="row[remark]" type="text" value="{$row.remark}">
        </div>
    </div>
    {/if}
    {if ($row.cat=="员工" )}
    <div class="yuangong form-group" >
        <label class="control-label col-xs-12 col-sm-2">{:__('公司名称')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-remark" data-rule="required"  class="form-control" name="row[remark]" type="text" value="{$row.remark}">
        </div>
    </div>
    {/if}
    <input type="hidden" name="shenhe" value="">
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">通过</button>
            <button type="refuse" class="btn btn-default btn-embossed" onclick="refuse()">拒绝</button>
        </div>
    </div>
</form>